#pragma once
#include "Action.h"
#include "..\base\Engine.h"
#include "..\renderer\DebugRenderer.h"

namespace ds {

class DebugInfoAction : public Action {

public:
	DebugInfoAction() : Action("DebugInfo") {}
	virtual ~DebugInfoAction() {}
	void start() {
		setActive(true);
	}
	void stop() {
		setActive(false);
	}
	void update(float elapsed) {
		if ( isActive() ) {
			gEngine->getDebugRenderer()->showDrawCounter(ds::Vec2(10,10));
			gEngine->getDebugRenderer()->showProfile(ds::Vec2(10,40));
		}
	}

};

}
